package org.asiainfo.system.domain;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;

/**
 * 系统登录记录(SysLoginInfo)实体类
 *
 * @author dotor-ww
 * @since 2024-01-28 20:50:51
 */
@Data
@Table("sys_login_info")
public class SysLoginInfo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 访问ID
     */
    @Id
    @Column(value = "info_id")
    private Long infoId;
    /**
     * 用户账号
     */
    @Column(value = "user_name")
    private String userName;
    /**
     * 客户端
     */
    @Column(value = "client_key")
    private String clientKey;
    /**
     * 设备类型
     */
    @Column(value = "device_type")
    private String deviceType;
    /**
     * 登录IP地址
     */
    @Column(value = "ipaddr")
    private String ipaddr;
    /**
     * 登录地点
     */
    @Column(value = "login_location")
    private String loginLocation;
    /**
     * 浏览器类型
     */
    @Column(value = "browser")
    private String browser;
    /**
     * 操作系统
     */
    @Column(value = "os")
    private String os;
    /**
     * 登录状态（0成功 1失败）
     */
    @Column(value = "status")
    private String status;
    /**
     * 提示消息
     */
    @Column(value = "msg")
    private String msg;
    /**
     * 访问时间
     */
    @Column(value = "login_time")
    private Date loginTime;
    /**
     * 租户ID
     */
    @Column(value = "tenant_id")
    private Long tenantId;
}

